<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
</head>
<body>
    <div id="app">
        <!-- 一旦输入什么，就会自动把内容给msg这个变量 -->
        <input type="text" v-model="msg">
        <textarea v-model="msg"></textarea>

        <!-- <div v-model="msg"></div> -->
        <div> {{ msg }} </div>


        <p> {{ msg }} </p>
    </div>
    <script src="./vue.js"></script>
    <script>
        new Vue({
            el: '#app',
            data() {
                return {
                    msg: '你好'
                }
            },
        })
    </script>
</body>
</html>